<template>
    <div class="block">
    <el-pagination 
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage1"
      layout="total, prev, pager, next, jumper"
      :total="40">
    </el-pagination>
  </div>
</template>
<script>
export default {
    name:"TRpage",
     methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    },
    data() {
      return {
        currentPage1: 1,
        pageSize:10,
      };
    }
}
</script>